package com.github.icloudpay.crm.core.biz;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.icloudpay.crm.core.entity.OrderBounty;
import com.github.icloudpay.crm.core.mapper.OrderBountyMapper;
import com.github.wxiaoqi.security.common.biz.BaseBiz;

/**
 * 悬赏订单表
 *
 * @author centerroot
 * @email lfw6699@163.com
 * @date 2018-05-25 15:20:49
 */
@Service
public class OrderBountyBiz extends BaseBiz<OrderBountyMapper,OrderBounty> {
	
	private static final Logger logger = LoggerFactory.getLogger(OrderBountyBiz.class);
	
	@Autowired
	private OrderBountyMapper orderBountyMapper;
	
	/**
	 * 查询订单列表
	 * @return
	 */
	public Map<String, Object> queryOrderList(Map<String, Object> map) {
		List<Map<String, Object>> res = orderBountyMapper.queryOrderList(map);
		Map<String, Object> respMap = new HashMap<>();
		respMap.put("orderList", res);
		return respMap;
	}
}